package com.wing.product.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.wing.mybatis.common.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NonNull;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Positive;

@Schema(description="加工质检明细表")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName(value = "warehouse_quality_testing_detail")
public class WarehouseQualityTestingDetail extends BaseEntity<WarehouseQualityTestingDetail> {

    @TableField(value = "quality_testing_id")
    @Schema(description="质检表id")
    private Long qualityTestingId;

    @TableField(value = "finished_product_bundle_code")
    @Schema(description="成品捆包号")
    private String finishedProductBundleCode;

    @NotNull
    @Positive
    @TableField(value = "inspected_quantity")
    @Schema(description="质检数量")
    private Integer inspectedQuantity;

    @TableField(value = "quality_inspection_results")
    @Schema(description="质检结果")
    private String qualityInspectionResults;

    @TableField(value = "qualified")
    @Schema(description="1.合格，2.不合格")
    private Integer qualified;

    @TableField(value = "state")
    @Schema(description="处置方式1.入库，2.报废，3.返工")
    private Integer state;

    @TableField(value = "status")
    @Schema(description="1.待出库2.已出库")
    private Integer status;
}
